import request from '@/utils/request'

//统一字典下拉框查询
export function adminDict(params) {
    return request({
        url: `common/v1/adminDict`,
        params
    })
}
//查询推荐人下拉框
export function referrerSelect(params) {   
    return request({
        url: `/merchant/contract/referrer/select`,
        method: 'get',
        params
    })
}
//查询商家合同统计信息
export function contractStatistics(params) {   
    return request({
        url: `/merchant/contract/statistics`,
        method: 'get',
        params
    })
}
//查询商家合同列表
export function contractList(params) {   
    return request({
        url: `/merchant/contract/list`,
        method: 'get',
        params
    })
}
//查询商家合同详情
export function contractDetail(id) {
    return request({
      url: `/merchant/contract/detail/${id}`,
      method: 'get',
    })
}
//更新审核信息
export function contractModify(data) {
    return request({
        url: `/merchant/contract/audit/info`,
        method: 'put',
        data
    })
}
//审核商家合同
export function contractExamine(data) {
    return request({
        url: `/merchant/contract/audit/status`,
        method: 'put',
        data
    })
}


